using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Banshee.Winforms.Gui
{

        public sealed class UIManager
        {
            public event EventHandler Initialized;

            private bool initialized;
            private Panel source_view_container;

            public void Initialize()
            {
                if (!initialized)
                {
                    initialized = true;
                    OnInitialized();
                }
            }

            protected void OnInitialized()
            {
                EventHandler handler = Initialized;
                if (handler != null)
                {
                    handler(this, new EventArgs());
                }
            }

            public bool IsInitialized
            {
                get { return initialized; }
            }

            public Panel SourceViewContainer
            {
                get { return source_view_container; }
                set
                {
                    if (source_view_container == null)
                    {
                        source_view_container = value;
                    }
                }
            }
            private int position = 0;

            public int Position
            {
                get { return position; }
                set { position = value; }
            }
        }
}
